/*
 * note.h
 * Project 4
 * Nicole Ang (nang1@asu.edu)
 * Bijan Fakhri (bfakhri@asu.edu)
 * CSE 325: Embedded Microprocessor Systems
 * Spring 2013
 */

#ifndef NOTE_H_
#define NOTE_H_

#include "support_common.h"

typedef enum {
	B3 = 0x00,
	C4 = 0x01,
	D4 = 0x03,
	E4 = 0x05,
	F4 = 0x06,
	G4 = 0x08,
	A4 = 0x0A,
	A3 = 0x0B,
	pause = 0x0C
}Pitch;

typedef enum {
	sixty_fourth = 0x01,
	sixty_fourth_dot = 0x02,
	thirty_secondth = 0x03,
	thirty_secondth_dot = 0x04,
	sixteenth = 0x05,
	sixteenth_dot = 0x06,
	eigth = 0x07,
	eigth_dot = 0x08,
	quarter = 0x09,
	quarter_dot = 0x0A,
	half = 0x0B,
	half_dot = 0x0C,
	whole = 0x0D
}Type;
 
typedef struct note_t{
	Pitch pitch;
	Type type;
}Note;

#endif /* NOTE_H_ */
